﻿//-----------------------------------------------------------------------
// <copyright file="Parameter.cs" company="Craig Longford">
//     Copyright (c) Craig Longford. All rights reserved.
//     Email: deltawolf7@gmail.com
//     WWW: http://www.deltasblog.co.uk
// </copyright>
//-----------------------------------------------------------------------

namespace Delta.Data.DataExpress
{
    /// <summary>
    /// Data parameter class
    /// </summary>
    public class Parameter
    {
        #region Constructors
        /// <summary>
        /// Initializes a new instance of the Parameter class.
        /// </summary>
        public Parameter()
        {
            this.Name = string.Empty;
            this.Value = null;
        }

        /// <summary>
        /// Initializes a new instance of the Parameter class.
        /// </summary>
        /// <param name="name">Parameter name</param>
        /// <param name="value">Parameter value</param>
        public Parameter(string name, object value)
        {
            this.Name = name;
            this.Value = value;
        }
        #endregion

        #region Properties
        /// <summary>
        /// Gets or sets the name of the parameter
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// Gets or sets the value of the parameter
        /// </summary>
        public object Value { get; set; }
        #endregion
    }
}
